package com.bank.bank.common.base.response;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * 自定义枚举状态码
 */
@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum StatusCode {
    //所有枚举类的实例必须放在最上面;
    OPERATION_SUCCESS(2000, "操作成功"),
    OPERATION_FAILED(2001, "操作失败"),
    VALIDATED_ERROR(2002, "参数校验失败"),
    PHONE_ALREADY_EXISTS(1000, "手机号已存在"),
    MONEY_NOT_ENOUGH(3000, "余额不足");
    private Integer state;
    private String message;
}
